imonit_client.php
This is the client-side library required for using the i-mon-it service. There are four files that need to be plced on your web servers: 1. imonit_client.php: This is the core requirement holding the logic and required methods 1. imonit_client_lib.php: this library contains the central functions used by the rest of the library. Those are more rudimentory functins.
- imonit_client.inc; This is a helperfile, which is loading the client libary and the client side libary into your web application. imonit.token This is the token file identifying your webappliction. This is individual for each of your web applications monitored by the i-mon-it service.
This library contains several static functions, which make remote calls to the i-mon-it server.In order to use the i-mon-it micro services you need to include this library and imonit_client_lib.php into every page and class you want to monitor with the i-mon-it service. In order to use the services you need to call the central i-mon-it SaaS micro services. Below you find the explanation how to do this:
Tags
Table of Contents
Classes
Constants
- checktoken = \listener . '/checktoken.php'
- URL for the verifytoken service to compare the wesit imonit.token with the one dynamically genered by the i-mon-it system-
- count = \listener . 'count.php'
- URL for the count microservice service.
- end = \listener . 'end.php'
- URL for the end service.
- endpage = \listener . '/endpage.php'
- URL for the endpage service.
- imonit_server = $server
- itoken = 'token'
- This is the name of the session variable holding information about the token number used on the website to be monitored.
- itokenfilename = 'imonit.token'
- Name of the local file holding the token.This file has to be placed in the root directory of your webapplication in one each for each webapplication. Those files are personalized for our account and the webapplivcation you are monitoring with i-mon-it. If you plan to also moitor your development and staging environment it needes to contain a token each as well.
- lastentry = \listener . 'lastentry.php'
- listener = 'http://' . \imonit_server . '/'
- local_server = '.i-mon-it.de'
- mid = \listener . 'mid.php'
- URL for the mid service.
- midpage = \listener . '/midpage.php'
- URL for the midpage service.
- ping = \listener . 'ping.php'
- start = \listener . 'start.php'
- startpage = \listener . 'startpage.php'
- ua = \listener . 'UA.php'
Constants
checktoken
URL for the verifytoken service to compare the wesit imonit.token with the one dynamically genered by the i-mon-it system-
public
string
checktoken
= \listener . '/checktoken.php'
URL for the verifytoken service
Tags
count
URL for the count microservice service.
public
string
count
= \listener . 'count.php'
URL for the count Service
Tags
end
URL for the end service.
public
string
end
= \listener . 'end.php'
URL for the end Service
Tags
endpage
URL for the endpage service.
public
string
endpage
= \listener . '/endpage.php'
URL for the endpage service
Tags
imonit_server
public
mixed
imonit_server
= $server
itoken
This is the name of the session variable holding information about the token number used on the website to be monitored.
public
mixed
itoken
= 'token'
itokenfilename
Name of the local file holding the token.This file has to be placed in the root directory of your webapplication in one each for each webapplication. Those files are personalized for our account and the webapplivcation you are monitoring with i-mon-it. If you plan to also moitor your development and staging environment it needes to contain a token each as well.
public
string
itokenfilename
= 'imonit.token'
Name of the tokenfile holding the correct information.
lastentry
public
mixed
lastentry
= \listener . 'lastentry.php'
listener
public
mixed
listener
= 'http://' . \imonit_server . '/'
local_server
public
mixed
local_server
= '.i-mon-it.de'
mid
URL for the mid service.
public
string
mid
= \listener . 'mid.php'
Urlfor the mid service
Tags
midpage
URL for the midpage service.
public
string
midpage
= \listener . '/midpage.php'
URL for the endpage service
Tags
ping
public
mixed
ping
= \listener . 'ping.php'
start
public
mixed
start
= \listener . 'start.php'
startpage
public
mixed
startpage
= \listener . 'startpage.php'
ua
public
mixed
ua
= \listener . 'UA.php'